<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <link rel="stylesheet" href="css/conmmon.css">
  <link rel="stylesheet" href="css/user_detail.css">
</head>
<body>
<!-- 导航栏 -->
<div class="nav">
  <img src="image/happy.jpg" alt="">
  <span class="title">我的博客系统</span>
  <!-- 用来占据中间位置 -->
  <span class="spacer"></span>
  <a href="blog_list.html">主页</a>
  <a href="blog_edit.html">写博客</a>
  <a href="login.html">登陆</a>
  <!-- <a href="#">注销</a> -->
</div>

  <div class="user-container">
    <div class="photo-op">
      <img src="/user/photoUpload" class="photo">
      <button class="change-photo" onclick="changePhoto()">修改头像</button>
    </div>
    <div class="name-op">
      <span class="username">陈宣佑</span>
      <button class="submit">点击修改</button>
    </div>
    <div class="addre-op">
      <span class="addre">666</span>
      <button class="submit">点击修改</button>
    </div>
    <a class="change-password" href="#">修改密码</a>
  </div>


</body>
<script>
  function changePhoto(){
    $.ajax({
      url:"/user/changePhoto",
      method:"POST",
      data:{

      },
      success:function (result){

      }
    });
  }
</script>

</html>